package com.pet.server.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CateBrand entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cate_brand")
public class CateBrand implements java.io.Serializable {

	// Fields

	private Integer id;
	private String cate;
	private String brand;

	// Constructors

	/** default constructor */
	public CateBrand() {
	}

	/** full constructor */
	public CateBrand(String cate, String brand) {
		this.cate = cate;
		this.brand = brand;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "cate", nullable = false, length = 32)
	public String getCate() {
		return this.cate;
	}

	public void setCate(String cate) {
		this.cate = cate;
	}

	@Column(name = "brand", nullable = false, length = 32)
	public String getBrand() {
		return this.brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

}